package com.hlbspringcloud.graphqldemo.entity.response;

import lombok.extern.slf4j.Slf4j;

/**
 * TODO
 *
 * @author huangxiansheng
 * @date 2021/1/12 2:12 下午
 */
@Slf4j
public final class ResponseBuilder {

    private ResponseBuilder(){}

    public static Result getRespCode(int errCode){
        Result result = new Result();
        result.setRespCode(errCode);
        return result;
    }

    public static Result getRespCodeMsg(int errCode,String msg){
        Result result = new Result();
        result.setRespCode(errCode);
        result.setMsg(msg);
        return result;
    }

}
